/**
 * 
 */
package com.simtek.simplayer.window;

import android.content.Context;
import android.view.WindowManager.LayoutParams;
import android.widget.PopupWindow;

/**
 * @author Hitech
 * 
 */
public class AppConfigPopup {

	private PopupWindow	popup;
	private boolean		isFullMode;

	private void onCreate(Context context, boolean isFullScreen) {
		this.isFullMode = isFullScreen;

		int width = 1;
		popup = new PopupWindow(width, LayoutParams.WRAP_CONTENT);
		onCreateView(context);
	}

	private void onCreateView(Context context) {
		// TODO Auto-generated method stub

	}

	public void show(Context context, boolean isFullScreen) {
		if (popup == null) {
			onCreate(context, isFullScreen);
		} else if (isFullScreen != isFullMode) {
			onCreateView(context);
		}
	}
}
